PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFCanvas Class / drawRectangle Method / drawRectangle(PDFBrush,double,double,double,double,double) Method
that determines the characteristics of the fill.
The x-coordinate of the upper-left corner of the rectangle to draw.
The y-coordinate of the upper-left corner of the rectangle to draw.
Width of the rectangle to draw.
Height of the rectangle to draw.
Rotation of the rectangle around the upper-left corner.
In This Topic
    drawRectangle(PDFBrush,double,double,double,double,double) Method
    In This Topic
    Fills the interior of a rectangle specified by a coordinate pair, a width, and a height.
    Syntax
    public void drawRectangle( 
       PDFBrush brush,
       double x,
       double y,
       double width,
       double height,
       double rotation
    )

    Parameters

    brush
    that determines the characteristics of the fill.
    x
    The x-coordinate of the upper-left corner of the rectangle to draw.
    y
    The y-coordinate of the upper-left corner of the rectangle to draw.
    width
    Width of the rectangle to draw.
    height
    Height of the rectangle to draw.
    rotation
    Rotation of the rectangle around the upper-left corner.
    See Also